class Restaurant():
    """模拟饭店调查"""

    def __init__(self,restaurant_name,cuisine_type):

        self.name=restaurant_name
        self.type=cuisine_type
        self.number_served=0

    def describe_restaurant(self): #不要忘记这个self
        print(self.name+'的'+self.type+'很不错')

    def open_restaurant(self):
        print('而且他正在营业')
        ## 内部参数，不要忘了self

    def set_number_served(self,number):

        if number>=self.number_served:
            self.number_served=number

        print('共有'+str(self.number_served)+'人在此用餐过。')

    def increment_number_served(self,increment_number):
        self.number_served=increment_number
        print('共有' + str(self.number_served) + '人在此用餐过。')

